<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
  <meta name="keywords" content="admin, dashboard, bootstrap, template, flat, modern, theme, responsive, fluid, retina, backend, html5, css, css3">
  <meta name="description" content="this is AllenChen 基于SSM的门诊管理系统 Web端">
  <meta name="author" content="ThemeBucket">
  <link rel="icon" href="./images/hospital-icon.png" type="image/x-icon">  <!--在网页标题左侧显示图标-->
<!--    <link rel="shortcut icon" href="./images/hospital-icon.png" type="image/x-svg">-->
  <link rel="shortcut icon" href="./images/hospital-icon.png" type="image/x-icon"><!--在收藏夹显示图标-->\

  <title>主页-门诊管理系统</title>



  <!--icheck-->
    <!--检查-->
  <link href="js/iCheck/skins/minimal/minimal.css" rel="stylesheet">
  <link href="js/iCheck/skins/square/square.css" rel="stylesheet">
  <link href="js/iCheck/skins/square/red.css" rel="stylesheet">
  <link href="js/iCheck/skins/square/blue.css" rel="stylesheet">

  <!--dashboard calendar-->
    <!--仪表版 日历-->
  <link href="css/clndr.css" rel="stylesheet">

  <!--Morris Chart CSS -->
    <!--莫里斯图表CSS-->
  <link rel="stylesheet" href="js/morris-chart/morris.css">

  <!--common-->
    <!--公共-->
  <link href="css/style.css" rel="stylesheet">
  <link href="css/style-responsive.css" rel="stylesheet">




  <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!--HTML5 shim和Respond.js对HTML5元素和媒体查询的IE8支持-->
  <!--[if lt IE 9]>
  <script src="js/html5shiv.js"></script>
  <script src="js/respond.min.js"></script>
  <![endif]-->

</head>

<body class="sticky-header">



<!-- Placed js at the end of the document so the pages load faster -->
<script src="js/jquery-1.10.2.min.js"></script>
<script src="js/jquery-ui-1.9.2.custom.min.js"></script>
<script src="js/jquery-migrate-1.2.1.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/modernizr.min.js"></script>
<script src="js/jquery.nicescroll.js"></script>

<!--easy pie chart-->
<script src="js/easypiechart/jquery.easypiechart.js"></script>
<script src="js/easypiechart/easypiechart-init.js"></script>

<!--Sparkline Chart-->
<script src="js/sparkline/jquery.sparkline.js"></script>
<script src="js/sparkline/sparkline-init.js"></script>

<!--icheck -->
<script src="js/iCheck/jquery.icheck.js"></script>
<script src="js/icheck-init.js"></script>

<!-- jQuery Flot Chart-->
<script src="js/flot-chart/jquery.flot.js"></script>
<script src="js/flot-chart/jquery.flot.tooltip.js"></script>
<script src="js/flot-chart/jquery.flot.resize.js"></script>


<!--Morris Chart-->
<script src="js/morris-chart/morris.js"></script>
<script src="js/morris-chart/raphael-min.js"></script>

<!--Calendar-->
<script src="js/calendar/clndr.js"></script>
<script src="js/calendar/evnt.calendar.init.js"></script>
<script src="js/calendar/moment-2.2.1.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.5.2/underscore-min.js"></script>

<!--common scripts for all pages-->
<script src="js/scripts.js"></script>

<!--Dashboard Charts-->
<script src="js/dashboard-chart-init.js"></script>

<!-- 开发环境版本，包含了有帮助的命令行警告 -->
<script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
<!-- 生产环境版本，优化了尺寸和速度 -->
<script src="https://cdn.jsdelivr.net/npm/vue@2"></script>
<!--axios-->
<script src="https://cdn.bootcdn.net/ajax/libs/axios/0.21.1/axios.min.js"></script>

<script>

    // jquery提供的,页面加载完毕立即运行的方法
    $(function(){
        // 这个方法一定是携带令牌发送请求给判断用户身份的控制器
        // 下面测试是否能够获得令牌:localStorage中获得Jwt
        let token=window.localStorage.getItem("accessToken");
        console.log(token);
        // axios请求,根据当前用户信息获得要跳转的首页路径
        axios({
            url:"http://localhost:9000/auth/api/home",
            method:"get",
            params:{
                "accessToken":token
            }
        }).then(function(response){
            // 控制器响应了要跳转的页面,直接跳转即可
            location.href=response.data;
        })

    })

</script>




</body>
</html>
